<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */
$woozoxFolder = "flash";
$woozoxProjectName = "WoozoxSampleFlex";

$flashPlayerRequiredMajorVersion = 9;
$flashPlayerRequiredMinorVersion = 0;
$flashPlayerRequiredRevision = 124;

$useWoozox = ($_GET['woozox'] != "no");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ($useWoozox) { ?>
<!-- ADDED FOR WOOZOX -->
<link rel="stylesheet" type="text/css" href="<?= bloginfo('template_url'); ?>/<?= $woozoxFolder; ?>/history/history.css" />
<script src="<?= bloginfo('template_url'); ?>/<?= $woozoxFolder; ?>/AC_OETags.js" language="javascript"></script>
<script src="<?= bloginfo('template_url'); ?>/<?= $woozoxFolder; ?>/history/history.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
var requiredMajorVersion = <?= $flashPlayerRequiredMajorVersion; ?>;
var requiredMinorVersion = <?= $flashPlayerRequiredMinorVersion; ?>;
var requiredRevision = <?= $flashPlayerRequiredRevision; ?>;
// -->
</script>
<style>
body, html { margin: 0px; overflow:hidden; height: 100%; }
</style>
<!-- END ADDED FOR WOOZOX -->
<?php } ?>
<style type="text/css" media="screen">

<?php
// Checks to see whether it needs a sidebar or not
if ( empty($withcomments) && !is_single() ) {
?>
	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
<?php } else { // No sidebar ?>
	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } ?>

</style>

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>
</head>
<?php if ($useWoozox) { ?>
<body <?php body_class(); ?> scroll="no">
<?php } else { ?>
<body <?php body_class(); ?>>	
<?php } ?>
<?php if ($useWoozox) { ?>
<!-- ADDED FOR WOOZOX (also scroll="no")  -->
<div id="woozox-container" style="width:100%; height:100%">
<script language="JavaScript" type="text/javascript">
<!--
var hasProductInstall = DetectFlashVer(6, 0, 65);
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if ( hasProductInstall && !hasRequestedVersion ) {
	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	var MMredirectURL = window.location;
    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
    var MMdoctitle = document.title;

	AC_FL_RunContent(
		"src", "<?= bloginfo('template_url'); ?>/<?= $woozoxFolder; ?>/playerProductInstall",
		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
		"width", "100%",
		"height", "100%",
		"align", "middle",
		"id", "<?= $woozoxProjectName; ?>",
		"quality", "high",
		"bgcolor", "#869ca7",
		"name", "<?= $woozoxProjectName; ?>",
		"allowScriptAccess","sameDomain",
		"type", "application/x-shockwave-flash",
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
} else if (hasRequestedVersion) {
	AC_FL_RunContent(
			"src", "<?= bloginfo('template_url'); ?>/<?= $woozoxFolder; ?>/<?= $woozoxProjectName; ?>",
			"width", "100%",
			"height", "100%",
			"align", "middle",
			"id", "<?= $woozoxProjectName; ?>",
			"quality", "high",
			"bgcolor", "#869ca7",
			"name", "<?= $woozoxProjectName; ?>",
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
  } else { 
    var alternateContent = 'Alternate HTML content should be placed here. '
  	+ 'This content requires the Adobe Flash Player. '
   	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);
  }
// -->
</script>
<noscript>
  	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="<?= $woozoxProjectName; ?>" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="<?= bloginfo('template_url'); ?>/<?= $woozoxFolder; ?>/<?= $woozoxProjectName; ?>.swf" />
			<param name="quality" value="high" />
			<param name="bgcolor" value="#869ca7" />
			<param name="allowScriptAccess" value="sameDomain" />
			<embed src="<?= bloginfo('template_url'); ?>/<?= $woozoxFolder; ?>/<?= $woozoxProjectName; ?>.swf" quality="high" bgcolor="#869ca7"
				width="100%" height="100%" name="<?= $woozoxProjectName; ?>" align="middle"
				play="true"
				loop="false"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
</noscript>
</div>
<!-- END ADDED FOR WOOZOX -->
<?php } ?>
<div id="page">


<div id="header" role="banner">
	<div id="headerimg">
		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
		<div class="description"><?php bloginfo('description'); ?></div>
	</div>
</div>
<hr />
